<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
<link href="${jypath}/resources/css/upload.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${jypath}/static/css/strip.css" />
<div id="rightPremisesDiv">
	<!-- 
	<div class="row page-header">
		<h1>&nbsp;<span id='title1'></span><small>  <span id='title2'></span> </small></h1>
	</div>
	 -->
	<form id="basePremisesForm" method="POST" onsubmit="return false;">
	<div class="widget-main customBtn">	
	<c:forEach var="btn" items="${permitBtn}">
        <c:choose>
			<c:when test="${btn.permission=='estate:projectPremises:edit'}">
			<button type="button" id="btn_premisesUpdate" class="btn btn-warning  btn-sm">
			<span class="glyphicon glyphicon-edit">编辑</span>
		</button>
		&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:projectRoom:saveBatchData'}">
			<button type="button" id=btn_roomBatchUpdate class="btn btn-primary btn-sm">
			<span class="glyphicon glyphicon-edit">批量修改</span>
		</button>
		&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:import:importExcel'}">
			<button type="button" id="btn_toBatchImport" class="btn btn-primary btn-sm">
			<span class="glyphicon glyphicon-plus">批量导入</span>
		</button>
		&emsp;
			</c:when>
			<c:when test="${btn.permission=='estate:projectPremises:delete'}">
			<button type="button" id="btn_premisesDel" class="btn btn-primary btn-sm">
			<span class="glyphicon glyphicon-minus">删除</span>
		</button>
			</c:when>
		</c:choose>
										
		</c:forEach>
	</div>
	<c:if test="${!empty ar.obj}">
	<input type="hidden" id="projectId" value="${ar.obj.projectId}">
	<input type='hidden' id="premisesId" name='premisesId' value="${ar.obj.id}" />
	<input type='hidden' name='treeId' value="${ar.obj.id}" />
	<input type='hidden' name='layer' value="2" />
	</c:if>
	<c:if test="${!empty parentName}">
	<input type='hidden' name='parentName' value="${parentName}" />
	</c:if>
	<c:if test="${!empty manageObject}">
	<input type='hidden' name='manageObject' value="${manageObject}" />
	</c:if>
	</form>
	<c:choose>
	<c:when test="${!empty ar.obj}">
	<div class="loadinfor">
		<div class="">
			<table  class="table table-bordered table-hover">
				<tr>
					<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="2">组团信息</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;项目名称：</b>&emsp;&emsp;${parentName}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;组团名称：</b>&emsp;&emsp;${premises.groupName}</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;组团编号：</b>&emsp;&emsp;${premises.premisesCode}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;产品类型：</b>&emsp;&emsp;
						<c:forEach var="rowEnum" items="${projectTypes}">
							<c:if test="${rowEnum.no==premises.projectType}">${rowEnum.des}</c:if>
                         </c:forEach>
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;容积率：</b>&emsp;&emsp;${premises.plotRatio}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;绿化率：</b>&emsp;&emsp;${premises.greeningRate}</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;占地面积：</b>&emsp;&emsp;${premises.floorSpace}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;总户数：</b>&emsp;&emsp;${premises.householdsTotal}</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;车位数：</b>&emsp;&emsp;${premises.carportTotal}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;车位配比：</b>&emsp;&emsp;${premises.carportMatching}</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;销售热线：</b>&emsp;&emsp;${premises.salesHotline}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;产权年限：</b>&emsp;&emsp;${premises.propertyYear}</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;建造进度：</b>&emsp;&emsp;${premises.buildingSchedule}</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;开工时间：</b>&emsp;&emsp;<fmt:formatDate value="${premises.startTime}" pattern="yyyy-MM-dd"/></td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;交付情况：</b>&emsp;&emsp;
						<c:forEach var="rowEnum"   items="${deliveryStatusEnums}">
							<c:if test="${rowEnum.no==premises.deliveryFlag}">${rowEnum.des}</c:if>
                     	</c:forEach>
					</td>
					<td width="50%"><b>&emsp;&emsp;&emsp;交付日期：</b>&emsp;&emsp;<fmt:formatDate value="${premises.deliveryDate}" pattern="yyyy-MM-dd"/></td>
				</tr>
				<tr>
					<td colspan="2">
						<b>&emsp;&emsp;&emsp;装修标准：</b>
						&emsp;&emsp;<c:choose>
							<c:when test="${premises.renovationType eq 0}">精装</c:when>
							<c:when test="${premises.renovationType eq 1}">毛坯</c:when>
							<c:when test="${premises.renovationType eq 2}">其他${premises.renovationDesc}</c:when>
						</c:choose>
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;销售情况：</b>&emsp;&emsp;
						<c:forEach var="rowEnum"   items="${salesStatusEnums}">
							<c:if test="${rowEnum.no==premises.salesStatus}">${rowEnum.des}</c:if>
                       	</c:forEach>
					</td>
					<td width="50%"><b>&emsp;&emsp;预售证编号：</b>&emsp;&emsp;${premises.salesPermissionNo}</td>
				</tr>
				<tr>
					<td width="50%" colspan="2"><b>预售证领取日期：</b>&emsp;&emsp;
						<fmt:formatDate value="${premises.salesPermissionDate}" pattern="yyyy-MM-dd"/>
					</td>
				</tr>
			</table>
	  	</div>
	  	
	  	<div class="">
			<table  class="table table-bordered table-hover">
				<tr>
					<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;" colspan="2">组团详情</td>
				</tr>
				<tr>
					<td width="50%" colspan="2"><b>&emsp;&emsp;&emsp;物业类型：</b>&emsp;&emsp;
						<c:forEach var="rowEnum"   items="${tenementTypeEnums}">
							<c:if test="${rowEnum.no==projectPremisesInfo.tenementType}">${rowEnum.des}</c:if>
                      	</c:forEach>
					</td>
				</tr>
				<tr>
					<td width="50%" colspan="2"><b>&emsp;&emsp;总建筑面积：</b>&emsp;&emsp;
						${projectPremisesInfo.overallFloorage}m<sup>2</sup>
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;&emsp;地上面积：</b>&emsp;&emsp;${projectPremisesInfo.groundArea}m<sup>2</sup></td>
	                <td width="50%"><b>&emsp;住宅建筑面积：</b>&emsp;&emsp;
						${projectPremisesInfo.housingArea}m<sup>2</sup>
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;&emsp;地下面积：</b>&emsp;&emsp;
						${projectPremisesInfo.undergroundArea}m<sup>2</sup>
					</td>
	                <td width="50%"><b>&emsp;&emsp;&emsp;四至边界：</b>&emsp;&emsp;
						${projectPremisesInfo.fourBorder}
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;可出租面积：</b>&emsp;&emsp;
						${projectPremisesInfo.rentableArea}m<sup>2</sup>
					</td>
	                <td width="50%"><b>&emsp;&emsp;&emsp;&emsp;停车位：</b>&emsp;&emsp;
						${projectPremisesInfo.fourBorder}&emsp;个
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;&emsp;自用面积：</b>&emsp;&emsp;
						${projectPremisesInfo.ownArea}m<sup>2</sup>
					</td>
	                <td width="50%"><b>&emsp;&emsp;&emsp;地上机动车位：</b>&emsp;&emsp;
						${projectPremisesInfo.groundMotor}&emsp;个
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;地下停车场：</b>&emsp;&emsp;
						${projectPremisesInfo.undergroundParkingArea}m<sup>2</sup>
					</td>
	                <td width="50%"><b>&emsp;&emsp;&emsp;地下机动车位：</b>&emsp;&emsp;
						${projectPremisesInfo.undergroundMotor}&emsp;个
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;数量：</b>&emsp;&emsp;
						${projectPremisesInfo.undergroundParkingNum}&emsp;个
					</td>
	                <td width="50%"><b>&emsp;&emsp;地上非机动车位：</b>&emsp;&emsp;
						${projectPremisesInfo.groundNonMotor}&emsp;个
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;绿化面积：</b>&emsp;&emsp;
						${projectPremisesInfo.greenSpace}m<sup>2</sup>
					</td>
	                <td width="50%"><b>&emsp;&emsp;地下非机动车位：</b>&emsp;&emsp;
						${projectPremisesInfo.undergroundNonMotor}&emsp;个
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;&emsp;总户数：</b>&emsp;&emsp;
						${projectPremisesInfo.totalHouse}
					</td>
	                <td width="50%"><b>&emsp;&emsp;常住人口数：</b>&emsp;&emsp;
						${projectPremisesInfo.permanentPopulation}&emsp;
					</td>
				</tr>
				<tr>
					<td width="50%"><b>&emsp;&emsp;&emsp;总人口数：</b>&emsp;&emsp;
						${projectPremisesInfo.totalPopulation}
					</td>
	                <td width="50%"><b>&emsp;&emsp;暂住人口数：</b>&emsp;&emsp;
						${projectPremisesInfo.temporaryPopulation}&emsp;
					</td>
				</tr>
				<tr>
					<td width="100%" colspan="2" style="height: 40px;"><b>&emsp;&emsp;&emsp;&emsp;&emsp;备注：</b>&emsp;&emsp;
						${projectPremisesInfo.remark}
					</td>
				</tr>
			</table>
	  	</div>
		</div>
	</div>
	</c:when>
	<c:otherwise>
	<table id="premisesTable" class="table table-bordered table-hover" >
		<tr>
			<td style="background-color: #D8D8D8; font-size: 16px; font-weight: bold;">组团详情</td>
		</tr>
		<tr>
			<td style="text-align: center;"><h1>${ar.resMsg}</h1></td>
		</tr>
	</table>
	</c:otherwise>
	</c:choose>
</div>
<script src="${jypath}/static/js/estate/premises/premises.js?v=${jsVersion}"></script>


